package AbstractFactory;

import AbstractFactory.Color.Blue;
import AbstractFactory.Color.Green;
import AbstractFactory.Color.IColor;
import AbstractFactory.Color.Red;
import AbstractFactory.Shape.IShape;

public class ColorFactory extends AbstractFactory{
    public IColor getColor(String ColorType){
        if (ColorType == null){
            return null;
        }

        if (ColorType.equalsIgnoreCase("RED")){
            return new Red();
        }else if (ColorType.equalsIgnoreCase("BLUE")){
            return new Blue();
        }else if (ColorType.equalsIgnoreCase("GREEN")){
            return new Green();
        }
        return null;
    }

    @Override
    IShape getShape(String shape) {
        return null;
    }
}
